import java.util.HashSet;
import java.util.Set;

public class Main {
    public static void main(String[] args) {
        Person person1=new Person(18,"zhangjunf");
        Person person2=new Person(19,"chenk");
        Person person3=new Person(20,"zhoum");
        Set<Person> per=new HashSet<>();
        per.add(person1);
        per.add(person2);
        per.add(person3);
        for(Person peo:per){
            System.out.println("姓名"+peo.name+"年龄"+peo.age);
        }
    }
}